﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrderSList.aspx.cs" Inherits="RGPWEB.CH.OrderS.OrderSList" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<link href="../../inc/Style/index.css" rel="Stylesheet" type="text/css" />
<link href="../../inc/Style/contentstyle.css" rel="Stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="../../inc/script/pub.js"></script>
<link href="../../inc/Style/GridView.css" rel="Stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="../../../../inc/Script/My97DatePicker/WdatePicker.js"></script>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div class="title">    
            <h1 class="on"><a href="javascript:void(0)">订单列表</a></h1>
             <h1><a href="OrderS.aspx?type=add">新增订单</a></h1>
        </div>
        <div>
            <fieldset id="1" style="width:98%">
                <legend>搜索条件</legend>
                <table style="width:100%;">
                    <tr>
                        <td>
                            发件日期（开始）：</td>
                        <td>
                            <asp:TextBox ID="txt_start" runat="server" onClick='WdatePicker()'></asp:TextBox>
                        </td>
                        <td>
                            发件日期（结束）：</td>
                        <td>
                            <asp:TextBox ID="txt_end" runat="server" onClick='WdatePicker()'></asp:TextBox>
                        </td>
                        <td>
                            订单号：</td>
                        <td>
                            <asp:TextBox ID="txt_OrderNo" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            状态：</td>
                        <td>
                            <asp:DropDownList ID="ddl_status" runat="server">
                                
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            发件人：</td>
                        <td>
                            <asp:TextBox ID="txt_sendmen" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            发件国家：</td>
                        <td>
                            <asp:DropDownList ID="ddl_country" runat="server">
                            </asp:DropDownList>
                        </td>                    
                        <td>
                                转运商：</td>                    
                        <td>
                                <asp:DropDownList ID="ddl_forwardlist" runat="server">
                                </asp:DropDownList>
                        </td>                    
                        <td>
                               转运单号：</td>                    
                        <td>
                            <asp:TextBox ID="txt_fordno" runat="server"></asp:TextBox>
                        </td>                    
                    </tr>
                    <tr>
                        <td>
                            发件人电话：</td>
                        <td>
                            <asp:TextBox ID="txt_sendtel" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            发件人地址：</td>
                        <td>
                            <asp:TextBox ID="txt_sendadd" runat="server"></asp:TextBox>
                        </td>                    
                        <td>
                                收件人：</td>                    
                        <td>
                            <asp:TextBox ID="txt_recmen" runat="server"></asp:TextBox>
                        </td>                    
                        <td>
                                收件地址：</td>                    
                        <td>
                            <asp:TextBox ID="txt_recadd" runat="server"></asp:TextBox>
                        </td>                    
                    </tr>
                    <tr>
                        <td>
                            收件人电话：</td>
                        <td>
                            <asp:TextBox ID="txt_rectel" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>                    
                        <td>
                                &nbsp;</td>                    
                        <td>
                                &nbsp;</td>                    
                        <td>
                                &nbsp;</td>                    
                        <td>
                            &nbsp;</td>                    
                    </tr>
                    <tr>
                        <td colspan="7" id="cb" runat="server">
                            客户：<asp:ComboBox ID="cmb_list" runat="server" AutoCompleteMode="SuggestAppend" 
                                DropDownStyle="DropDownList">
                            </asp:ComboBox>
                            <asp:ToolkitScriptManager ID="ScriptManager1" runat="server" />
                        </td>
                        <td>
                            <asp:Button ID="btn_search" runat="server" Text="搜索" 
                                onclick="btn_search_Click" />
                        </td>                    
                    </tr>
                    </table>
            </fieldset>
            <fieldset id="Fieldset1" style="width:98%">
            <legend>订单列表</legend>
            <table border="1" cellpadding="1" cellspacing="1" style="width:100%;">
                <tr>
                    <td>
                         <asp:GridView ID="grv_list" runat="server" 
                            AutoGenerateColumns="False" DataKeyNames="O_ID" 
                            onrowcommand="grv_list_RowCommand" onrowdatabound="grv_list_RowDataBound" 
                            CssClass="Grid" AllowSorting="True" onsorting="grv_list_Sorting">
                            <FooterStyle CssClass="GridFooter" />
                            <RowStyle CssClass="Row" />
                            <HeaderStyle CssClass="HeadingCell" />
                            <Columns>
                                <asp:TemplateField HeaderText="客户编码">
                                    <ItemStyle Width="120px"></ItemStyle>
                                    <ItemTemplate>
                                        <asp:Label ID="lbl_code" runat="server" Text='<%#Eval("O_SCNO") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField HeaderText="订单号" DataField="O_OrderNo" ItemStyle-Width="150px" >
        <ItemStyle Width="150px"></ItemStyle>
                                </asp:BoundField>
                                <asp:BoundField HeaderText="发件人" DataField="O_SMen" ItemStyle-Width="150px" >
        <ItemStyle Width="150px"></ItemStyle>
                                </asp:BoundField>
                                <asp:BoundField HeaderText="发件日期" DataField="O_SendDate" ItemStyle-Width="150px" 
                                    DataFormatString="{0:yyyy-MM-dd}">
        <ItemStyle Width="150px"></ItemStyle>
                                </asp:BoundField>
                                <asp:BoundField HeaderText="发件人电话" DataField="O_STel" ItemStyle-Width="150px">
        <ItemStyle Width="150px"></ItemStyle>
                                </asp:BoundField>
                                <asp:BoundField HeaderText="收件人" DataField="O_RMen" ItemStyle-Width="150px">
        <ItemStyle Width="150px"></ItemStyle>
                                </asp:BoundField>
                                <asp:BoundField HeaderText="收件人电话" DataField="O_RTel" ItemStyle-Width="150px">
        <ItemStyle Width="150px"></ItemStyle>
                                </asp:BoundField>
                                <asp:BoundField HeaderText="目的国" DataField="O_RCountry" ItemStyle-Width="150px">
        <ItemStyle Width="150px"></ItemStyle>
                                </asp:BoundField>
                                <asp:BoundField HeaderText="转运商" DataField="O_ForwarderName" 
                                    ItemStyle-Width="150px">
        <ItemStyle Width="150px"></ItemStyle>
                                </asp:BoundField>
                                <asp:BoundField HeaderText="转运单号" DataField="O_ForwarderNO" 
                                    ItemStyle-Width="150px">
        <ItemStyle Width="150px"></ItemStyle>
                                </asp:BoundField>
                                <asp:BoundField HeaderText="计费重量" DataField="O_RWeight" ItemStyle-Width="150px">
        <ItemStyle Width="150px"></ItemStyle>
                                </asp:BoundField>
                                <asp:BoundField HeaderText="费用" DataField="O_Freight" DataFormatString="{0:C}" ItemStyle-Width="150px">
        <ItemStyle Width="150px"></ItemStyle>
                                </asp:BoundField>
                                <asp:TemplateField>
                                    <ItemTemplate>                                
                                        <asp:Button ID="btn_edit" runat="server"  Text="编辑" CommandArgument='<%# Eval("O_ID")%>' CommandName="GetID"/>    
                                    </ItemTemplate>                
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <ItemTemplate>      
                                        <asp:Button ID="btn_del" runat="server"  Text="删除" CommandArgument='<%# Eval("O_ID")%>' CommandName="delID"/>            
                                    </ItemTemplate>                
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <ItemTemplate>                                
                                        <asp:Button ID="btn_view" runat="server"  Text="查询" CommandArgument='<%# Eval("O_ID")%>' CommandName="viewID"/>    
                                    </ItemTemplate>                
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <ItemTemplate>                                
                                        <asp:Button ID="btn_track" runat="server"  Text="追踪" CommandArgument='<%# Eval("O_OrderNo")%>' CommandName="trackID"/>    
                                    </ItemTemplate>                
                                </asp:TemplateField>
                            </Columns>
                       </asp:GridView>
                    </td>                    
                </tr>  
                <tr>
                    <td>
                        <webdiyer:AspNetPager runat="server" HorizontalAlign="Center" 
                            Width="100%" PageIndexBoxType="DropDownList" 
                            PageSize="10" CssClass="paginator" CurrentPageButtonClass="cpb"
                            FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" 
                            onpagechanging="anp_list_PageChanging" ID="anp_list" AlwaysShow="True">
                        </webdiyer:AspNetPager>
                    </td>
                </tr>               
            </table>
        </fieldset>
        </div>
    </form>
</body>
</html>
